package com.msb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller//创建控制层对象（供业务层调用）
public class MyController {
    @RequestMapping("/test1")//想访问到test1这个控制单元
    @ResponseBody//想在页面上显示hi,springboot
    public String test1(){
        return "hi,springboot";
    }
}

